﻿<UserControl x:Class="Road3App.Views.UserControls.EditRoadUC"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:sys="clr-namespace:System;assembly=mscorlib">
    <Grid>
        <StackPanel>
            <StackPanel.Resources>
                <sys:Double x:Key="ControlWidth">200</sys:Double>
                <Style TargetType="TextBox">
                    <Setter Property="Width" Value="{StaticResource ControlWidth}"/>
                </Style>
                <Style TargetType="TextBlock">
                    <Setter Property="Width" Value="{StaticResource ControlWidth}"/>
                </Style>
            </StackPanel.Resources>
            <TextBlock Text="Length"/>
            <TextBox Text="{Binding Length}"/>
            <TextBlock Text="Lanes"/>
            <TextBox Text="{Binding Lanes}"/>
            <TextBlock Text="Speed Limit"/>
            <TextBox Text="{Binding SpeedLimit}"/>
        </StackPanel>
    </Grid>
</UserControl>
